package cn.bjc.system.service.impl;

import cn.bjc.basic.service.impl.BaseServiceImpl;
import cn.bjc.system.domain.Systemdictionarytype;
import cn.bjc.system.mapper.SystemdictionarydetailMapper;
import cn.bjc.system.mapper.SystemdictionarytypeMapper;
import cn.bjc.system.service.ISystemdictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemdictionarytypeServiceImpl extends BaseServiceImpl<Systemdictionarytype> implements ISystemdictionarytypeService {


    @Autowired
    private SystemdictionarytypeMapper systemdictionarytypeMapper;

    @Autowired
    private SystemdictionarydetailMapper systemdictionarydetailMapper;

    @Override
    public void remove(Long id) {
        systemdictionarydetailMapper.removeByTypeId(id);
        super.remove(id);
    }

    @Override
    public void patchDel(List<Long> ids) {
        systemdictionarydetailMapper.patchRemoveByTypeId(ids);
        super.patchDel(ids);
    }
}
